home *** CD-ROM | disk | FTP | other *** search
- {******************************************************************}
- { }
- { Mancala }
- { Turbo Pascal for Windows }
- { Copyright (c) 1991 by Swan Software. All rights reserved. }
- { }
- {******************************************************************}
-
- { mancala.pas -- The game of Mancala }
-
- {$D Copyright (c) 1991 by Swan Software. All rights reserved. }
-
- {$M 16000, 16000}
-
- program Mancala;
-
- {$R mancala.res}
-
- uses WinTypes, WinProcs, WObjects, UGlobals, Idents, UWindow;
-
-
- type
-
- TMancalaApp = object(TApplication)
- procedure InitMainWindow; virtual;
- procedure InitInstance; virtual;
- end;
-
-
- {- Initialize TMancalaApp object's window }
-
- procedure TMancalaApp.InitMainWindow;
- begin
- MainWindow := New(PMancalaWin, Init(nil, app_Name));
- end;
-
-
- {- Initialize instance of program and load keyboard accelerators }
-
- procedure TMancalaApp.InitInstance;
- begin
- TApplication.InitInstance;
- if Status = 0 then
- HAccTable := LoadAccelerators(HInstance, PChar(id_Accelerator));
- end;
-
-
- var
-
- MancalaApp: TMancalaApp;
-
-
- begin
- MancalaApp.Init(app_Name);
- MancalaApp.Run;
- MancalaApp.Done;
- end.
-
-
- {--------------------------------------------------------------
- Copyright (c) 1991 by Tom Swan. All rights reserved.
- Revision 1.00 Date: 7/10/1991
- ---------------------------------------------------------------}
-